/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.expert.AuthExamExpertMapService;
import com.orange.modules.dao.expert.AuthExpertExamMapRepository;
import com.orange.modules.entity.expert.AuthExamExpertMap;

/**
 * @author gaogs
 *
 * 2016-12-1
 */
@Service
public class AuthExamExpertMapServiceImpl implements AuthExamExpertMapService {

	@Autowired
	private AuthExpertExamMapRepository authExamExpertMapRepository;
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamExpertMapService#saveAuthExamExpertMapInfos(java.util.List)
	 */
	@Override
	public void saveAuthExamExpertMapInfos(List<AuthExamExpertMap> list) {
		authExamExpertMapRepository.saveAuthExamExpertMapInfos(list);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamExpertMapService#deleteAuthExamExpertMapInfos(java.util.List)
	 */
	@Override
	public void deleteAuthExamExpertMapInfos(List<AuthExamExpertMap> list) {
		authExamExpertMapRepository.deleteAuthExamExpertMapInfos(list);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamExpertMapService#queryAuthExamExpertMapByTaskAndSubject(java.lang.String, java.lang.String, java.lang.String)
	 */
	@Override
	public List<AuthExamExpertMap> queryAuthExamExpertMapByTaskAndSubject(
			String groupId, String taskId, String subject) throws SQLException {
		List<AuthExamExpertMap> list=authExamExpertMapRepository.queryAuthExamExpertMapByTaskAndSubject(groupId, taskId, subject);
		return list;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthExamExpertMapService#queryAuthExamExpertMapByTaskAndExpertId(java.lang.String, java.lang.String, java.lang.String)
	 */
	@Override
	public List<AuthExamExpertMap> queryAuthExamExpertMapByTaskAndExpertId(
			String groupId, String taskId, String expertId) throws SQLException {
		List<AuthExamExpertMap> ls=authExamExpertMapRepository.queryAuthExamExpertMapByTaskAndExpertId(groupId, taskId, expertId);
		return ls;
	}

}
